
export function getTimeValueByTime(time) {
  time = Number(time);
  if (time) {
    switch (time) {
      case 1:
        return 'one';
      case 2:
        return 'two';
      case 3:
        return 'three';
      case 4:
        return 'four';
      case 5:
        return 'slam';
      case 6:
      case 7:
        return 'over';
      case 8:
      case 9:
      case 10:
        return 'double';
      case 11:
      case 12:
        return 'triple';
      default:
        return time >= 13 ? 'max' : undefined;
    }
  }
  return undefined;
}